<template>
  <section @click="clickCurrent('current')" @mousedown="clickCurrent('dragging')">
   <div :class="['custorm--modelbox', 'graphictitle-show', (custormCurrent == custormIndex)?'drag active':'drag']">
      <div
        class="noshow"
      ></div>
      <div
        style="overflow: hidden;"
      >
        <div
          class="es-title title1"
        >
          <div class="flex-row flex-justify-b flex-align-c">
            <div class="title-content">
              <div
                class="main-title line-hide"
                style="width:260px;"
              ><span style="color:red;margin-right:10px;" v-if="custormItemData.required==1">*</span>{{custormItemData.name}}</div>
            </div>
            <div
              class="title-more line-hide"
            >
            {{custormItemData.default}}
            <!-- <i class="el-icon-arrow-right"></i>-->
            </div>
          </div>
        </div>
      </div>
      <div
        class="btn-edit-del"
        @click="delCurrent"
      ><span class="btn-del iconfont icon icon-close"></span></div>
    </div>
  </section>
</template>

<script>
import defaultConfig from './utils/showConfig'
export default {
  mixins: [defaultConfig.mixins],
  props: {
    defaultConfig: {
      type: Object,
      default: function() {
        return defaultConfig
      }
    }
  },
  methods: {

  }
}
</script>

<style lang="scss" scoped>

  .es-title {
    position: relative;
  }

  .es-title {
    margin: 12px;
    font-size: 16px;
    font-weight: 700;
  }

  .es-title.title1 .title {
    padding: 0 10px;
    position: relative;
    background: #fff;
    z-index: 2;
  }

  .es-title .title-more {
    font-size: 13px;
    color: #999999;
    font-weight: normal;
  }
  .two-line-hide {
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .line-hide {
        white-space: nowrap;
    }

</style>
